package cn.tedu.boyou.search.template;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "boyou_saletype",type = "saletype")
@Setter
@Getter
public class SaleTypeTemplate implements Serializable{

    public static final String INDEX_NAME = "boyou_saletype";
    public static final String TYPE_NAME = "saletype";

    @Id
    @Field(store = true,index = false, type = FieldType.Long)
    private Long id; //旅游交通方式id

    @Field(store = true, index = true, type = FieldType.Keyword)
    private String name;

    @Field(store = true, index = true, type = FieldType.Integer)
    private Integer type;

    @Field(store = true, index = true, type = FieldType.Keyword)
    private String typeName;
}
